package com.bw.goods.mvvm.adpter;

import com.bw.goods.R;
import com.bw.goods.mvvm.model.entity.HomeMenuEntity;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;

public class HomeMenuAdapter extends BaseQuickAdapter<HomeMenuEntity, BaseViewHolder> {
    public HomeMenuAdapter() {
        super(R.layout.item_home_menu);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, HomeMenuEntity homeMenuEntity) {
        baseViewHolder.setImageResource(R.id.home_menu_img, homeMenuEntity.iconId);
        baseViewHolder.setText(R.id.home_menu_tv,homeMenuEntity.title);

    }
}
